package hk.enums;

/**
 * @version 1.0
 * @Author YangJiaQuan_hrbnu
 * @Date 2024/3/13 21:22
 */
public enum EnumStatus {
    OK(200,"操作成功"),
    ERROR(-1,"操作失败"),
    NOT_FOUND(-2,"没有查到对应的数据");

    private Integer value;
    private String msg;

    EnumStatus(Integer value,String msg ){
        this.value=value;
        this.msg=msg;
    }

    public Integer getValue() {
        return value;
    }
    public void setValue(Integer value) {
        this.value = value;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
